<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2014/9/24
  Time: 13:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!doctype html>
<html lang="en">
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="/resources/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resources/public/css/public.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/resources/jquery/jquery-2.1.1.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/resources/bootstrap/js/bootstrap.min.js"></script>
    <title>${bl_main_post.title}</title>
</head>
<style>
    .li-style{
        color: #777777;
        list-style:none;
        float:left;
        margin-right: 10px;
    }
</style>
<body>
    <jsp:include page="../header.jsp"/>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h3><b>${bl_main_post.title}</b></h3>
                <ui>
                    <li class="li-style" ><span class="glyphicon glyphicon-time"/><fmt:parseDate  value="${bl_main_post.create_time}" pattern="yyyy-MM-dd HH:mm:ss" var="date"/> <fmt:formatDate value="${date}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
                    <li class="li-style" ><span class="glyphicon glyphicon-tag"/>${bl_main_post.bl_blog_tag.tag}</li>
                    <%--<li class="li-style" ><span class="glyphicon glyphicon-stats"/>${post.reading_quantity}</li>--%>
                </ui></br>
                <div><h5 style="border-bottom:1px solid #EEEEEE;clear: both"/></div>
                ${bl_main_post.content}
            </div>
        </div>
        <!-- 多说评论框 start -->
        <div class="ds-thread" id="duoshuo" data-thread-key="${bl_main_post.id}" data-title="${bl_main_post.title}" ></div>
        <!-- 多说评论框 end -->
    </div>

    <jsp:include page="../footer.jsp"/>
</body>
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
    var duoshuoQuery = {short_name:"an0nymouscoding"};
    (function() {
        var url = window.location.host;
        $("#duoshuo").attr('data-url',url+'/blogcontent?id='+${bl_main_post.id});
        var ds = document.createElement('script');
        ds.type = 'text/javascript';ds.async = true;
        ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
        ds.charset = 'UTF-8';
        (document.getElementsByTagName('head')[0]
                || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
</script>
<!-- 多说公共JS代码 end -->
</html>
